
package com.quartet.utils.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * <p>
 * 查询展示类型
 * </p>
 *
 * @author Zheng Jie
 * @date 2020-05-07
 */
@Getter
@AllArgsConstructor
public enum BaseDataEnum {

    ONE("1", "当前时间在线车辆","",""),
    TWO("2", "所有车辆行驶总里程","",""),
    THREE("3", "当前在线设备数目","",""),
    FOUR("4", "总报警数目","",""),
    FIVE("5", "超速","",""),
    SIX("6", "围栏","",""),
    SEVEN("7", "疲劳驾驶","",""),
    EIGHT("8", "偏航","",""),
    NINE("9", "设备在线率统计","",""),
    TEN("10", "车辆运行统计","",""),
    ELEVEN("11", "无信号","",""),
    TWELVE("12", "行驶中","",""),
    THIRTEEN("13", "停车","",""),
    FOURTEEN("14", "离线","",""),
    FIFTEEN("15", "在线设备","",""),
    SIXTEEN("16", "离线设备","",""),
    SEVENTEEN("17", "报警设备","",""),
    
    EIGHTEEN("18", "","",""),
    NINETEEN("19", "","",""),
    TWENTY("20", "","",""),
    TWENTY_ONE("21", "","",""),
    TWENTY_TWO("22", "","",""),
    TWENTY_THREE("23", "","",""),
    TWENTY_FOUR("24", "","",""),
    TWENTY_FIVE("25", "","",""),
    TWENTY_SIX("26", "","",""),
    TWENTY_SEVEN("27", "","",""),
    TWENTY_EIGHT("28", "","",""),
    TWENTY_NINE("29", "","",""),
    THIRTY("30", "","",""),
    THIRTY_ONE("31", "","","");
    private final String value;
    private final String description;
    private final String descriptionEn;
    private final String descriptionSingapore;

    public static BaseDataEnum find(String val) {
        for (BaseDataEnum dataScopeEnum : BaseDataEnum.values()) {
            if (val.equals(dataScopeEnum.getValue())) {
                return dataScopeEnum;
            }
        }
        return null;
    }

}
